import Layout from "@/layout/index.vue"

export default [
  {
    path: '/',
    component: Layout,
    redirect: '/home',
    hidden: true,
    children: [
      {
        path: '',
        component: () => import('@/views/home/index.vue'),
        name: 'home',
        meta: {
          title: '首页'
        }
      }
    ]
  },
  {
    path: '/order',
    component: Layout,
    // redirect: '/orderManager',
    hidden: true,
    children: [
      {
        path: '',
        component: () => import('@/views/order/index.vue'),
        name: 'order',
        meta: {
          title: '下单页'
        }
      }
    ]
  },
  // {
  //   path: '/customerManager',
  //   component: Layout,
  //   hidden: true,
  //   children: [
  //     {
  //       path: '',
  //       component: () => import('@/views/customer/index.vue'),
  //       name: 'customerManager',
  //       meta: {
  //         title: '客户管理'
  //       }
  //     }
  //   ]
  // },
  {
    path: '/orderManager',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '',
        component: () => import('@/views/orderManager/index.vue'),
        name: 'orderManager',
        meta: {
          title: '订单管理'
        }
      }
    ]
  },
  {
    path: '/productManager',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '',
        component: () => import('@/views/product/index.vue'),
        name: 'productManager',
        meta: {
          title: '产品管理'
        }
      }
    ]
  },
  {
    path: '/categoryManager',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '',
        component: () => import('@/views/category/index.vue'),
        name: 'categoryManager',
        meta: {
          title: '类别管理'
        }
      }
    ]
  },
  {
    path: '/settings',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '',
        component: () => import('@/views/settings/index.vue'),
        name: 'settings',
        meta: {
          title: '系统设置'
        }
      }
    ]
  },
  // {
  //   path: '/temp',
  //   component: Layout,
  //   hidden: true,
  //   children: [
  //     {
  //       path: '',
  //       component: () => import('@/views/temp/index.vue'),
  //       name: 'settings',
  //     }
  //   ]
  // },
  // {
  //   path: '/temp2',
  //   component: Layout,
  //   hidden: true,
  //   children: [
  //     {
  //       path: '',
  //       component: () => import('@/views/temp/index2.vue'),
  //       name: 'settings',
  //     }
  //   ]
  // },
]
